package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品库存表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("product_stock")
public class ProductStock implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "库存记录id，主键，自增")
      @TableId(value = "stock_record_id", type = IdType.AUTO)
    private Integer stockRecordId;

    //@ApiModelProperty(value = "商品id")
    private Integer productId;

    //@ApiModelProperty(value = "库存变化量")
    private Integer stockChange;

    //@ApiModelProperty(value = "变化类型")
    private String changeType;

    //@ApiModelProperty(value = "变化时间")
    private Date changeTime;


}
